home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / MPW_TOOL / TOOLS / TOOLS_WI / MACGAWK / MPW_3 / MISSING / MEMCPY.C < prev    next >
Text File  |  1990-07-29  |  261b  |  19 lines

  1. /*
  2.  * memcpy --- copy strings.
  3.  *
  4.  * We supply this routine for those systems that aren't standard yet.
  5.  */
  6.  
  7. char *
  8. memcpy (dest, src, l)
  9. register char *dest, *src;
  10. register int l;
  11. {
  12.     register char *ret = dest;
  13.  
  14.     while (l--)
  15.         *dest++ = *src++;
  16.  
  17.     return ret;
  18. }
  19.